<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8"/>
    <title><?php echo $view['config']['webSiteName'] . $view['config']['adminName'] . $view['config']['dashBoard'] ?>
        新闻管理</title>
    <?php include_once("common/admin_css_js_header.php");?>
</head>
<body>
<!-- Header -->
<?php include_once("common/admin_header.php");?>
<!-- End of Header -->
<!-- Page title -->
<div id="pagetitle">
    <div class="wrapper">
        <h1>会员管理 &rarr; <span>报名列表</span></h1>
        <!-- Quick search box -->
        <form action="" method="get"><input class="" type="text" id="q" name="q"/></form>
    </div>
</div>
<!-- End of Page title -->

<!-- Page content -->
<div id="page">
    <!-- Wrapper -->
    <div class="wrapper">
        <!-- Left column/section -->
        <section class="column width6 first" style="width:990px;">

            <div id="tabs">

                <div id="tabs-date">
                    <div class="colgroup">
                        <div class="width3 column first">
                            <p>总记录数:<?php echo $view['pagination']['totalCount']; ?></p>
                        </div>
                        <div class="width3 column">
                            <p class="pagination ta-right">
                                <?php echo $view['pagination']['code']; ?>
                            </p>
                        </div>
                    </div>
                    <div class="clearfix"></div>
                    <hr/>

                    <?php foreach ($view['pagination']['data'] as $value) { ?>
                    <div class="colgroup leading">
                        <div class="width1 column first ta-center">
                            <img width="64" height="64" SRC="<?php echo $value['photo'] ?>" alt=""/>
                        </div>
                        <div class="width5 column">
                            <a target="_blank"
                               href="<?php echo URL_PREFIX ?>/Admin/applications?action=show&id=<?php echo $value['applicationId'] ?>"><b
                                    class="big">姓名：<?php echo $value['name'] ?></b></a>(提交人:<?php echo $value['userName'] ?>
                            )<br/>

                            <small><b>性别：<?php echo $value['gender'] ?></b> | 年龄: <b><?php echo $value['age'] ?></b> |
                                个人签名: <?php echo $value['motto'] ?></small>
                            <br/>
                            <?php if ($value['status'] == 'WAIT') { ?>
                            <a href="<?php echo URL_PREFIX ?>/Admin/applications?action=doSomething&status=PASS&id=<?php echo $value['applicationId'] ?>"
                               class="btn-blue">通过</a> &middot; <a class="btn-blue"
                                                                   href="/Admin/applications?action=doSomething&status=FAILURE&id=<?php echo $value['applicationId'] ?>">不通过</a>
                            <?php

                        }
                        else {
                            $array = array("PASS" => "<span class=\"label label-green\">审核通过</span>", "FAILURE" => "<span class=\"label label-silver\">审核未通过</span>");
                            echo "审核状态:" . $array[$value['status']];
                        }
                            ?>

                        </div>
                    </div>
                    <?php } ?>
                </div>
                <div class="colgroup">
                    <div class="width3 column first">
                        <p>总记录数:<?php echo $view['pagination']['totalCount']; ?></p>
                    </div>
                    <div class="width3 column">
                        <p class="pagination ta-right">
                            <?php echo $view['pagination']['code']; ?>
                        </p>
                    </div>
                </div>
                <div class="clearfix"></div>

            </div>

        </section>
        <!-- End of Left column/section -->

        <!-- Right column/section -->
        <!-- <aside class="column width2">
            <p class="leading"><a href="#" class="btn btn-special btn-green"><img
                    SRC="<?php /*echo $view['config']['resource_domain'];*/?>/img/add.png" class="icon"
                    alt=""/>发表新闻</a></p>

            <!-- <div class="box">
                You are now using <b class="big">72%</b> of your allowed storage capacity.
                <div id="capacity" class="progress progress-green"><span><b></b></span></div>
            </div>-->
        <!--<div class="content-box">
            <header>
                <h3>Tags</h3>
            </header>
            <section>
                <div class="tagcloud">
                    <a href="#" class="tag1">lorem</a> <a href="#" class="tag5">ipsum</a> <a href="#" class="tag1">dolor</a>
                    <a href="#" class="tag3">sit</a> <a href="#" class="tag1">amet</a>
                </div>
            </section>
        </div>-->
        </aside>-->
        <!-- End of Right column/section -->

    </div>
    <!-- End of Wrapper -->
</div>
<!-- End of Page content -->

<?php include_once("common/admin_footer.php");?>
</body>
</html>